import fractions

for i in xrange(10, 100):
    for j in xrange(i + 1, 100):
        g = fractions.gcd(i, j)
        ii = i / g
        jj = j / g
        good = 0
        for s in str(i):
            if s in str(j):
                good = 1
                break

        if g > 1 and good and i % 10 != 0 and j % 10 != 0 and len(str(ii)) == 1 and len(str(jj)) == 1:
            print '%d/%d %d/%d' % (i, j, ii, jj)

